home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / SMI.MIB < prev    next >
Text File  |  1992-08-14  |  4KB  |  136 lines

  1.            RFC1155-SMI DEFINITIONS ::= BEGIN
  2.  
  3.            --
  4.            -- Microsoft extracted from RFC1155 and made no changes.
  5.            -- $Logfile:   N:/agent/mgmtapi/vcs/smi.miv  $ $Revision:   1.0  $
  6.            --
  7.  
  8.            EXPORTS -- EVERYTHING
  9.                    internet, directory, mgmt,
  10.                    experimental, private, enterprises,
  11.                    OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,
  12.                    ApplicationSyntax, NetworkAddress, IpAddress,
  13.                    Counter, Gauge, TimeTicks, Opaque;
  14.  
  15.             -- the path to the root
  16.  
  17.             internet      OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
  18.  
  19.             directory     OBJECT IDENTIFIER ::= { internet 1 }
  20.  
  21.             mgmt          OBJECT IDENTIFIER ::= { internet 2 }
  22.  
  23.             experimental  OBJECT IDENTIFIER ::= { internet 3 }
  24.  
  25.             private       OBJECT IDENTIFIER ::= { internet 4 }
  26.             enterprises   OBJECT IDENTIFIER ::= { private 1 }
  27.  
  28.  
  29.             -- definition of object types
  30.  
  31.             OBJECT-TYPE MACRO ::=
  32.             BEGIN
  33.                 TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
  34.                                   "ACCESS" Access
  35.                                   "STATUS" Status
  36.                 VALUE NOTATION ::= value (VALUE ObjectName)
  37.  
  38.                 Access ::= "read-only"
  39.                                 | "read-write"
  40.                                 | "write-only"
  41.                                 | "not-accessible"
  42.                 Status ::= "mandatory"
  43.                                 | "optional"
  44.                                 | "obsolete"
  45.             END
  46.  
  47.                -- names of objects in the MIB
  48.  
  49.                ObjectName ::=
  50.                    OBJECT IDENTIFIER
  51.  
  52.  
  53.                -- syntax of objects in the MIB
  54.  
  55.                ObjectSyntax ::=
  56.                    CHOICE {
  57.                        simple
  58.                            SimpleSyntax,
  59.  
  60.                -- note that simple SEQUENCEs are not directly
  61.                -- mentioned here to keep things simple (i.e.,
  62.                -- prevent mis-use).  However, application-wide
  63.                -- types which are IMPLICITly encoded simple
  64.                -- SEQUENCEs may appear in the following CHOICE
  65.  
  66.                        application-wide
  67.                            ApplicationSyntax
  68.                    }
  69.  
  70.                   SimpleSyntax ::=
  71.                       CHOICE {
  72.                           number
  73.                               INTEGER,
  74.  
  75.                           string
  76.                               OCTET STRING,
  77.  
  78.                           object
  79.                               OBJECT IDENTIFIER,
  80.  
  81.                           empty
  82.                               NULL
  83.                       }
  84.  
  85.                   ApplicationSyntax ::=
  86.                       CHOICE {
  87.                           address
  88.                               NetworkAddress,
  89.  
  90.                           counter
  91.                               Counter,
  92.  
  93.                           gauge
  94.                               Gauge,
  95.  
  96.                           ticks
  97.                               TimeTicks,
  98.  
  99.                           arbitrary
  100.                               Opaque
  101.  
  102.                   -- other application-wide types, as they are
  103.                   -- defined, will be added here
  104.                       }
  105.  
  106.  
  107.                   -- application-wide types
  108.  
  109.                   NetworkAddress ::=
  110.                       CHOICE {
  111.                           internet
  112.                               IpAddress
  113.                       }
  114.  
  115.                   IpAddress ::=
  116.                       [APPLICATION 0]          -- in network-byte order
  117.                           IMPLICIT OCTET STRING (SIZE (4))
  118.  
  119.                   Counter ::=
  120.                       [APPLICATION 1]
  121.                           IMPLICIT INTEGER (0..4294967295)
  122.  
  123.                   Gauge ::=
  124.                       [APPLICATION 2]
  125.                           IMPLICIT INTEGER (0..4294967295)
  126.  
  127.                   TimeTicks ::=
  128.                       [APPLICATION 3]
  129.                           IMPLICIT INTEGER (0..4294967295)
  130.  
  131.                   Opaque ::=
  132.                       [APPLICATION 4]          -- arbitrary ASN.1 value,
  133.                           IMPLICIT OCTET STRING   --   "double-wrapped"
  134.  
  135.                   END
  136.